class CreateEnvolvidos < ActiveRecord::Migration
  def self.up
    create_table :envolvidos do |t|
      t.column :nome, :string
      t.column :vulgo, :string
      t.column :cpf, :string, :limit => 11
      t.column :rg, :string
      t.column :data_nascimento, :date
      t.column :nome_mae, :string
      t.column :nome_pai, :string
      t.column :logradouro, :string
      t.column :bairro, :string
      t.column :cep, :string, :limit => 9
      t.column :cidade, :string
      t.column :uf, :string, :limit => 2
      t.column :telefone, :string
      t.column :created_at, :datetime
    end
  end

  def self.down
    drop_table :envolvidos
  end
end
